package exammanager;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JDialog;
import javax.swing.JFrame;

public class GUIQuestionAdd extends JDialog{
	
	private static final long serialVersionUID = 1L;
	private GuiQuestionAddLeft left;
	private GuiQuestionAddRight right;
	private int examID;
	
	public GUIQuestionAdd(JFrame parent, int examID) {
		super(parent, "Thêm Đề thi", true);
		this.examID = examID;
		setLayout(new GridBagLayout());
		left = new GuiQuestionAddLeft(this);
		right = new GuiQuestionAddRight(this);
		
		GridBagConstraints c = new GridBagConstraints();
		c.gridx = 0;
		c.gridy = 0;
		c.weightx = 1f;
		c.weighty = 1f;
		c.fill = GridBagConstraints.BOTH;
		add(left, c);//
		
		c.gridx = 1;
		c.weightx = 3f;
		add(right, c);//
	
	}
	public int getExamID(){
		return this.examID;
	}
	
	public GuiQuestionAddRight getRightPanel(){
		return right;
	}
	
	public GuiQuestionAddLeft getLeftPanel(){
		return left;
	}
}
